NET_SDK_EditFTPCfg¶
Interface Definition¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |
Function Description¶
FTP configuration interface, set the device FTP upload parameters and the FTP recording/capture/alarm switch of the specified channel.
Parameter Description¶
| Parameters | Type | Remark |
|---|---|---|
| lUserIDin | LONG | User ID, return value of NET_SDK_Login. |
| bSwitchin | BOOL | FTP switch (TRUE: on, FALSE: off). |
| serverAddrin | char* | FTP server address. |
| portin | int | FTP port. |
| userNamein | char* | FTP username. |
| passwordin | char* | FTP password (clear text, internal MD5 encryption). |
| anonymousSwitchin | BOOL | Anonymous login switch (TRUE: anonymous, FALSE: non-anonymous). |
| maxSizein | int | Maximum file size (range 0-4096). |
| pathin | char* | FTP upload path. |
| disNetUpLoadin | BOOL | Resume transmission switch after network disconnection (TRUE: on, FALSE: off). |
| channelNumin | int | The channel number to be modified matches the chlNum returned by queryFTPCfg. |
| streamTypein | NET_SDK_FTP_STREAM_TYPE | Stream type (0: sub-stream, 1: main stream). |
| motionin | BOOL | Motion detection recording switch (TRUE: on, FALSE: off). |
| inteligencein | BOOL | Smart recording switch (TRUE: on, FALSE: off). |
| sensorin | BOOL | Sensor alarm recording switch (TRUE: on, FALSE: off). |
| ftpSnapSwitchin | BOOL | FTP snapshot switch (TRUE: on, FALSE: off). |
| ftpAlarmInfoSwitchin | BOOL | FTP alarm information switch (TRUE: on, FALSE: off). |
Return Value¶
-
Type:BOOL
-
Remark:Returns TRUE if successful, FALSE if failed.
Remarks¶
None